#ifndef PITA_AUDIO_SOURCES_OGG_SOURCE_H_
#define PITA_AUDIO_SOURCES_OGG_SOURCE_H_

#include <vorbis/vorbisfile.h>

#include "interfaces/audio_source_interface.h"

namespace pita
{

	class SourceDescriptor;

	class OggSource : public AudioSourceInterface
	{
		public:
			OggSource(const SourceDescriptor&);
			~OggSource();

			bool finished() const;
			bool nextChunk(DataChunk&,
						   unsigned int);

		private:
			OggVorbis_File vfile_;
			bool finished_;
			
	};

}

#endif
